package C11_10_FormTemplateMethod.refactorbefore;

/**
 * @ClassName : LifeLineSite
 * @Description :
 * @Author : wukj1
 * @Date: 2022/8/16
 **/
public class LifeLineSite extends Site{

    public LifeLineSite(double units, double rate) {
        super(units, rate);
    }

    @Override
    protected double getBillableAmount() {
        double base = units * rate;
        double tax = base * Site.TAX_RATE;
        return base + tax;
    }
}
